#ifndef NEWIO_H
#define NEWIO_H

// Constants

#define VFS_OPEN		1
#define VFS_READ		2
#define VFS_WRITE		3
#define VFS_SEEK		4
#define VFS_CLOSE		7
#define VFS_STAT		13

// Functions

// Opens a file
int new_open( const char* file, int flags, int mode );

// Gets statistics on an open file
int new_fstat( int file, struct stat* st );

// Reads from a file
int new_read( int fd, char* dat, int len );

// Writes to a file
int new_write( int fd, char* buff, int len );

// Seeks to a new location in a file
int new_seek( int fd, int loc, int whence );

// Closes a file
int new_close( int fd );

#endif
